* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
}

#app {
  display: flex;
}


.el-menu--vertical {
  background: #fff;
}

@include b(application) {
  @include m(wrap) {
    flex: 1 1 auto; // grow shrink basic
    min-height: 100vh;
    max-width: 100%;
    position: relative;

    &.menu-collapse {
      @include b(navigation) {
        width: 80px;

        .logo-mini {
          margin-left: 10px;
          white-space: nowrap;
        }

        .logo-normal {
          display: none;
        }
      }

      @include b(header) {
        left: 80px;

        .v-header__trigger {
          transform: rotate(180deg);
        }
      }

      @include b(content) {
        padding-left: 80px;
      }
    }
  }
}

@include b(navigation) {
  height: 100vh;
  position: fixed;
  top: 0;
  background: #363636;
  width: 260px;
  z-index: 6;
  overflow: hidden;
  box-shadow: 0 2px 22px 0 rgba(0, 0, 0, .2), 0 2px 30px 0 rgba(0, 0, 0, .35);

  @include e(image) {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: -1;
  }
}

@include b(content) {
  display: flex;
  flex: 1 0 auto;
  padding: 106px 0 0 260px;
  height: calc(100vh - 0px);

  @include e(wrap) {
    background: #eee;
  }
}

@include b(image) {
  z-index: 0;

  @include e(image) {
    background-repeat: no-repeat;
    z-index: -1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    @include m(cover) {
      background-size: cover;
    }
  }
}

@include b(logo) {
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;

  @include e(content) {
    padding: 12px 0;
    display: flex;
    margin: 8px 0;

    .logo-mini {
      margin-left: 60px;
      margin-right: 15px;
    }
  }
}

@include b(divider) {
  display: block;
  flex: 1 1 0px;
  max-width: 100%;
  height: 0;
  max-height: 0;
  border: solid;
  border-width: thin 0 0 0;
  transition: inherit;
}

// styles
.v-image__image {
  &.theme-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url("~@/assets/siderbar/sidebar-1.jpg");
    background-size: cover;

  }
   &.theme-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url("~@/assets/siderbar/sidebar-2.jpg");
    background-size: cover;

  }
  &.theme-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url("~@/assets/siderbar/sidebar-3.jpg");
    background-size: cover;

  }
}

@mixin nav-trans {
  transition-duration: .2s, .2s, .35s;
  transition-property: width, padding;
  transition-timing-function: linear, linear, ease;
}

.v-navigation {
  // @include nav-trans();

  .v-divider {
    width: calc(100% - 30px);
    margin-left: 15px;
    border-color: hsla(0, 0%, 100%, 0.12);
    background-color: hsla(0, 0%, 71%, 0.2);
    margin-bottom: 8px;
  }
  .v-menu {
    padding: 8px 15px;
    border-right: none;
    width: 100%;
    @include nav-trans();
    &.el-menu--collapse {
      width: 80px !important;
      padding-right: 0;
      padding-left: 0;

      .el-submenu__title,
      .el-menu-item {
        margin-right: 10px;
        margin-left: 10px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
      }
    }

    .el-submenu {
      &.is-active {
        >.el-submenu__title {
          &::before {
            opacity: 0.2;
            background: #969696;
          }
        }
      }

      .slug {
        margin-right: 20px;
        margin-left: 5px;
        font-size: 12px;
      }
    }

    .el-menu-item {
      padding-left: 20px !important;

      &.is-active {
        background-color: #4caf50;
        box-shadow: 0 12px 20px -10px rgba(76, 175, 80, .28), 0 4px 20px 0 rgba(0, 0, 0, .12), 0 7px 8px -5px rgba(76, 175, 80, .2);
      }
    }

    .el-submenu__title,
    .el-menu-item {
      height: 48px;
      line-height: 48px;
      color: #fff;
      margin-bottom: 8px;
      border-radius: 4px;
      padding: 0 8px;

      &::before {
        background-color: currentColor;
        bottom: 0;
        content: "";
        border-radius: 4px;
        left: 0;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 0;
        transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
      }

      &:hover {
        &::before {
          opacity: 0.08;
        }
      }

      i {
        color: inherit;
        font-size: 18px;
        margin-right: 12px;

        &.el-submenu__icon-arrow {
          font-size: 14px;

          &::before {
            content: "\e790";
          }
        }
      }
    }
  }
}

.v-content {
  @include nav-trans();
  .v-content__wrap {
    flex: 1 1 auto;
    max-width: 100%;
    position: relative;
  }
}

.v-page {
  padding: 20px;
}

.hide {
  display: none !important;
}

.block {
  display: block !important;
  width: 100% !important;
}

.gray {
  filter: grayscale(100%);
  filter: gray;
}

.flex {
  display: flex !important;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-right {
  margin-left: auto;
}

.flex-left {
  margin-right: auto;
}

.inline {
  display: inline !important;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.single {
  .el-upload--picture-card {
    display: none;
  }
}

.row-img {
  width: 80px;
  height: 80px;
  padding: 5px;
  >img {
    width: auto !important;
  }
}

// 预览图关闭按钮
.el-icon-circle-close {
  color: #fff;
}

// 日期选择隐藏图标
.el-input__icon.el-range__icon.el-icon-time {
  width: 0;
}
.el-date-editor--datetimerange {
  width: 300px !important;
  .el-range-input {
    width: 130px !important;
  }
}

.scale-ani-enter-active{
  transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1);
}
// .scale-ani-leave-active  {}

.scale-ani-enter,
.scale-ani-leave-to {
  opacity: 0.5;
  transform: scale(0.9);
}
